<?php defined('IN_YUNYECMS') or exit('No permission.'); ?><!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title><?php echo $seo["title"] ;?></title>
  <meta name="keywords" content="<?php echo $seo["keywords"] ;?>" />
  <meta name="description" content="<?php echo $seo["description"] ;?>" />
  <!-- Tell the browser to be responsive to screen width -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <!-- Bootstrap 3.3.6 -->
  <link href="<?php echo YUNYECMS_PUBLIC;?>plugins/simple-line-icons/simple-line-icons.min.css" rel="stylesheet" />
  <!-- Font Awesome -->
  <link rel="stylesheet" href="<?php echo YUNYECMS_UI;?>plugins/fontawesome-free/css/all.min.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="<?php echo YUNYECMS_UI;?>plugins/iCheck/all.css">
  <link rel="stylesheet" href="<?php echo YUNYECMS_UI;?>dist/css/AdminLTE.min.css">
  <!-- AdminLTE Skins. Choose a skin from the css/skins
       folder instead of downloading all of them to reduce the load. -->
  <link rel="stylesheet" href="<?php echo YUNYECMS_UI;?>dist/css/skins/_all-skins.min.css">
  <link href="<?php echo YUNYECMS_UI;?>plugins/bootstrap-switch/css/bootstrap-switch.min.css" rel="stylesheet" type="text/css" />
  <link rel="stylesheet" href="<?php echo YUNYECMS_UI;?>dist/css/plugins.css">
  <link rel="stylesheet" href="<?php echo YUNYECMS_UI;?>dist/css/member.css">
  <link rel="shortcut icon" href="<?php echo YUNYECMS_UI;?>dist/img/favicon.ico" />
  <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  <!--[if lt IE 9]>
  <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  <![endif]-->
</head>

<body class="hold-transition skin-green sidebar-mini fixed">
  <div class="wrapper">
    <?php include tpl("left","member"); ?>
    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
      <!-- Content Header (Page header) -->

      <div class="content-header">
        <div class="container-fluid">
          <div class="row mb-2">
            <div class="col-sm-6">
              <ol class="breadcrumb float-sm-left">
                <li class="breadcrumb-item" id="homeitem"><a href="#" target="maincontent"> <i class="fa fa-home"></i>
                    首页</a></li>
                <li class="breadcrumb-item active">会员中心</li>
              </ol>
            </div>
            <div class="col-sm-6">
              <?php include tpl("fast","member"); ?>
            </div>
          </div>
        </div>
      </div>
      <div class="container-fluid" id="mainwrap">
        <!-- Main content -->
        <section class="content">
          <div class="clearfix"></div>
          <div class="box">
            <div class="card-header">
              <h3 class="card-title">会员基本信息</h3>
            </div>
            <div class="card-body">
              <div class="note note-info">
                <div class="meminfo">
                  <ul>
                    <li>
                      <span>用户名： <?php echo $member["username"] ;?> </span>&nbsp;&nbsp;
                      <span>
                        <a href="<?php echo url('member/member/myinfo');?>">资料修改</a>&nbsp;&nbsp;
                      </span>
                      <span>
                        <a href="<?php echo url('member/member/pwd');?>">密码修改</a>
                      </span>
                    </li>
                    <li>
                      <span>会员组： <?php echo GetMemberGroupName($member["groupid"]);?> &nbsp;&nbsp;&nbsp; <a
                          class="btn btn-success btn-sm btn-flat"
                          href="<?php echo url('member/membergroup_goods/index');?>"> 升级 </a></span>
                    </li>
                    <?php if($member['exptime']) { ?>
                    <li>
                      <span>到期时间：
                        <?php 
                          $ctime=time();
                          if($member['exptime']&&$member['exptime']<=$ctime){ echo '<font color=red>已到期</font>   ' ;
                            }elseif($member['exptime']){ echo date('Y-m-d',$member['exptime']); } ?>
                      </span>
                    </li>
                    <?php } ?>
                    <?php if(!empty($member["mobile"])) { ?>
                    <li>
                      <span>手机： <?php echo $member["mobile"] ;?> </span>
                    </li>
                    <?php } ?>
                    <?php if(!empty($member["name"])) { ?>
                    <li>
                      <span>姓名： <?php echo $member["name"] ;?> </span>
                    </li>
                    <?php } ?>
                    <?php if(!empty($member["email"])) { ?>
                    <li>
                      <span>E-mail： <?php echo $member["email"] ;?> </span>
                    </li>
                    <?php } ?>
                    <li>
                      <span>最近登录时间：</span>
                      <?php if($member['lastlogintime']){echo date('Y-m-d H:i:s',$member['lastlogintime']);}else{
                        echo date('Y-m-d H:i:s',$member['addtime']);
                        }?>
                    </li>
                  </ul>
                </div>


              </div>
            </div>
            <!-- /.box-body -->
            <div class="card-footer">

            </div>
            <!-- /.box-footer-->
          </div>
          <!-- Main row -->

          <!-- /.row -->
        </section>
        <!-- /.content -->
      </div>
    </div>
    <!-- /.content-wrapper -->
    <?php include tpl("foot","member"); ?>
    <!-- Add the sidebar's background. This div must be placed
       immediately after the control sidebar -->

  </div>
  <!-- ./wrapper -->

  <!-- jQuery 2.2.3 -->
  <script src="<?php echo YUNYECMS_UI;?>plugins/jQuery/jquery-3.6.1.min.js"></script>
  <!-- Bootstrap 3.3.6 -->
  <script src="<?php echo YUNYECMS_UI;?>bootstrap/js/bootstrap.min.js"></script>
  <!-- FastClick -->
  <script src="<?php echo YUNYECMS_UI;?>plugins/fastclick/fastclick.js"></script>
  <script src="<?php echo YUNYECMS_UI;?>plugins/bootstrap-switch/js/bootstrap-switch.min.js" type="text/javascript"></script>
  <!-- AdminLTE App -->
  <script src="<?php echo YUNYECMS_UI;?>dist/js/adminlte.js"></script>

</body>

</html>